package com.thinkgem.jeesite.modules.erp.entity;

public class Compare {

	private String code;
	private String name;
	
	public Compare() {
		super();
	}
	public Compare(String code, String name) {
		super();
		this.code = code;
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	@Override
	public int hashCode() {
		int result = 17;  
        result = 31 * result + code.hashCode();  
        result = 31 * result + name.hashCode();  
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Compare other = (Compare) obj;
		return other.code.equals(code)&&other.name.equals(name);
	}
	
}
